<?php if(!$pageexists) {echo "creating new page";} ?>
<form method="post" action="?show=<?php 
if($pageexists) {
  echo $page['title'];
} else {
  echo $_GET['edit'];
}
?>">
  <input type="text" name="edit_title" value="<?php echo $_GET['edit'] ?>" id="edit_title"> Title<br />
  <input type="text" name="edit_categories" value="<?php echo $page['categories'] ?>" size="25"> Categories<br />
  <textarea rows="20" cols="60" name="edit_body"><?php echo $revision ?></textarea>
  <br />
  <input type="submit" value="Submit &raquo;" accesskey="s">
</form>